<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="com.ophelisis.common.consts.*,
						com.ophelisis.actions.system.*" %>

<div class="copy">
	<img src="images/portal_copyright.png" />
</div>
<div id="viewLoading">
	<img src="images/icon/viewLoading.gif" class="bgWhite" />
</div>
<iframe id="formProcess" name="formProcess" class="nodisplay"></iframe>
<script>
$(document).ready(function() {
	initViewLoading();

	$("#viewLoading").ajaxStart(function() {
		$(this).fadeIn(100);
	}).ajaxStop(function() {
		$(this).fadeOut(100);
	});
});

$(window).resize(function(){
	initViewLoading();
});

function initViewLoading() {
	var gct = parseInt($("#gnb").css("height"));
	var gcl = parseInt($("#contants").offset().left);
	var gcw = parseInt($("body").css("width")) - (parseInt($("#leftmenu").css("width")) * 1.5);
	var gch = parseInt($("#container").css("height"));

// 	alert("top :: " + gct + " >> " + (gct + parseInt(gch / 2)) + "\nleft :: " + gcl + "\nwidth :: " + gcw + "\nheight :: " + gch + " >> " + (gch / 2));
	
	gct = (parseInt(gch / 2));

	$("#viewLoading").css("top", gct);
	$("#viewLoading").css("left", gcl);
	$("#viewLoading").css("width", gcw);
	
// 	$("#viewLoading").hide();
}
</script>